package com.paradigmcreatives.game.timers;

import java.util.Timer;

import com.paradigmcreatives.game.manager.UIManager;

public class DrawTimer {
	
	private Timer timer = null;
	private static DrawTimer drawTimer = null;
	public static DrawTimer getInstance(){
		if(drawTimer == null){
			drawTimer = new DrawTimer();
		}
		return drawTimer;
	}
	private DrawTimer() {
		timer = new Timer();
	}
	
	public void startTicking(UIManager uiManager, int intervalStep){
		if(timer!=null){
			timer.schedule(new DoodleTimer(uiManager, intervalStep), intervalStep,intervalStep);
			
		}
	}

}
